// ObjectTextureDlg.cpp : implementation file
//

#include "stdafx.h"
#include "CGWork.h"
#include "ObjectTextureDlg.h"
#include "afxdialogex.h"


// ObjectTextureDlg dialog

IMPLEMENT_DYNAMIC(ObjectTextureDlg, CDialogEx)

ObjectTextureDlg::ObjectTextureDlg(CWnd* pParent /*=NULL*/)
	: CDialogEx(ObjectTextureDlg::IDD, pParent)
{

}

ObjectTextureDlg::~ObjectTextureDlg()
{
}

void ObjectTextureDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(ObjectTextureDlg, CDialogEx)
	ON_BN_CLICKED(IDC_BUTTON1, &ObjectTextureDlg::OnBnClickedButton1)
	ON_BN_CLICKED(IDC_BUTTON2, &ObjectTextureDlg::OnBnClickedButton2)
	ON_BN_CLICKED(IDC_BUTTON3, &ObjectTextureDlg::OnBnClickedButton3)
	ON_BN_CLICKED(IDC_BUTTON4, &ObjectTextureDlg::OnBnClickedButton4)
	ON_BN_CLICKED(IDC_BUTTON5, &ObjectTextureDlg::OnBnClickedButton5)
	ON_BN_CLICKED(IDC_BUTTON7, &ObjectTextureDlg::OnBnClickedButton7)
	ON_BN_CLICKED(IDC_BUTTON8, &ObjectTextureDlg::OnBnClickedButton8)
	ON_BN_CLICKED(IDC_BUTTON9, &ObjectTextureDlg::OnBnClickedButton9)
	ON_BN_CLICKED(IDC_BUTTON10, &ObjectTextureDlg::OnBnClickedButton10)
	ON_BN_CLICKED(IDC_BUTTON11, &ObjectTextureDlg::OnBnClickedButton11)
END_MESSAGE_MAP()


// ObjectTextureDlg message handlers


void ObjectTextureDlg::OnBnClickedButton1()
{
	type = 4;
	nameOfType = "Wood";
}


void ObjectTextureDlg::OnBnClickedButton2()
{
	type = 3;
	nameOfType = "Marbel";
}


void ObjectTextureDlg::OnBnClickedButton3()
{
	type = 5;
	nameOfType = "Rust";
}


void ObjectTextureDlg::OnBnClickedButton4()
{
	type = 6;
	nameOfType = "Army";
}


void ObjectTextureDlg::OnBnClickedButton5()
{
	type = 7;
	nameOfType = "Earth";
}


void ObjectTextureDlg::OnBnClickedButton7()
{
	type = 0;
	nameOfType = "Flat";
}


void ObjectTextureDlg::OnBnClickedButton8()
{
	// TODO: Add your control notification handler code here
		type = 1;
	nameOfType = "Guarded";
}


void ObjectTextureDlg::OnBnClickedButton9()
{
	// TODO: Add your control notification handler code here
	type = 2;
	nameOfType = "Phong";
}


void ObjectTextureDlg::OnBnClickedButton10()
{
	type = 8;
	nameOfType = "Reptile skin";
}


void ObjectTextureDlg::OnBnClickedButton11()
{
	type = 9;
	nameOfType = "Mirror";
}
